package org.ihelpuoo.parser;

import java.io.BufferedReader;
import java.io.InputStream;
import java.io.InputStreamReader;

import org.ihelpuoo.io.CharInputStream;
import org.ihelpuoo.lang.LoaderException;

public abstract class AbstractTextParser implements TextParser
{
	public void parse(CharSequence cs) throws LoaderException
	{
		parse(new CharInputStream(cs));
	}

	public void parse(InputStream ins) throws LoaderException
	{
		BufferedReader br = new BufferedReader(new InputStreamReader(ins));
		parse(br);
	}

}
